<?php

namespace plugin\coupon\app\admin\controller;

use app\admin\controller\Curd;
use plugin\coupon\app\admin\service\CouponReceiveService;
use support\Request;

class ReceiveLogController extends Curd
{
    /**
     * 使用列表
     */
    public function index()
    {
        if (request()->isAjax()) {
            $couponService = new CouponReceiveService();
            $res = $couponService->getCouponReceiveLog(request()->all());
            return sparkSuccess($res);
        }

        return view('receive_log/index');
    }
}